const app = getApp()

Component({
  mixins: [],
  data: {},
  props: {},
  didMount() {
    this.setData({
      showLogSettings: app.globalData.debugSetting.showLogEntry
    })
  },
  didUpdate() {},
  didUnmount() {},
  methods: {
    onLogClick: function() {
      my.showActionSheet({
        items: ['祕技頁', 'Logcat'],
        success: result => {
          switch (result.index) {
            case 0:
              my.navigateTo({
                url: '/pages/secretPage/secretPage'
              })
              break
            case 1:
              my.navigateTo({
                url: '/pages/logPage/logPage'
              })
              break
          }
        }
      })
    }
  }
})
